package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.HarmlessReport;
import com.antdesignbackend.backend.entity.entityVo.HarmlessReportVo;
import com.antdesignbackend.backend.mapper.HarmlessReportMapper;
import com.antdesignbackend.backend.service.HarmlessReportService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HarmlessReportServiceImpl extends ServiceImpl<HarmlessReportMapper, HarmlessReport> implements HarmlessReportService {
    @Autowired
    HarmlessReportMapper harmlessReportMapper;

    @Override
    public List<HarmlessReportVo> search(QueryWrapper<HarmlessReportVo> queryWrapper, Page<HarmlessReportVo> page) {
        return harmlessReportMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<HarmlessReportVo> queryWrapper) {
        return harmlessReportMapper.count(queryWrapper);
    }
}
